<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>咨询详情</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/layer.css" />
    <link rel="stylesheet" type="text/css" href="../css/mdw.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/swiper.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/layer.js"></script>
    <script type="text/javascript" src="../script/mdw.js"></script>
    <script type="text/javascript" src="../script/jumpPage.js"></script>

</head>
<body >
    <header class="header">
        <div class="backPrevPage" onclick="historyBack()"></div>
        <div class="pageTitle">咨询详情</div>
    </header>
    <section class="newsPage HTML_BOX">
        <div class="bg-eee" style="border-bottom:.2rem solid #EEE ; "></div>
        <div class="newsDTitle plr">七月水果季尝鲜季开始咯，源头货源，新鲜直达小伙伴赶快来参加吧~
        </div>
        <div class="newsDatetime plr"><span>2018-8-8</span></div>
        <div class="newsContent plr">
            <!-- <img src="../image/news_image4.png"/>
            <p>活动详细介绍活动详细介绍低温酸奶冰爽尝鲜季开始咯，小伙伴赶快来参加吧~活动详细介绍活动详细介绍低温酸奶冰爽尝鲜季开始咯，小伙伴赶快来参加吧~</p> -->
        </div>
    </section>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function(){
        $api.fixStatusBar($api.dom('header'));
        api.setStatusBarStyle({
            color: '#fff',//设置APP状态栏背景色
            style: 'dark'
        });
        ifCnAndEn();
        var param = api.pageParam;
        $(".newsContent").html(param.content);
        $(".newsDTitle").html(param.title);
        $(".newsDatetime span").html(timestampToTime(param.create_time));

    };
    function timestampToTime(timestamp) {
    //时间戳为10位需*1000，时间戳为13位的话不需乘1000
        var date = new Date(timestamp * 1000);
        Y = date.getFullYear() + '-';
        M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
        D = date.getDate() + ' ';
        return Y+M+D;
    }
    
</script>
<script type="text/javascript">
    function ifCnAndEn(){
        var html = '';
        if(cnen==2){
            $(".pageTitle").html('News');
            
        }
    }
</script>
</html>